/* =========================
   INICIO SECCION VIDEOS
========================= */

.container-principal-videos{
    padding: 100px 8%;
    background-color: #f8f8f8;
}

/* =========================
   HEADER
========================= */

.videos-header{
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px auto;
}

.videos-header h2{
    font-size: 3rem;
    font-weight: 300;
    font-family: serif;
    margin-bottom: 25px;
    color: #111;
}

.videos-header p{
    max-width: 700px;
    margin: auto;
    font-size: 1rem;
    line-height: 2;
    color: #666;
    margin-bottom: 40px;
}

.videos-header a{
    display: inline-block;
    padding: 15px 35px;
    background-color: #000;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    transition: .3s ease;
}

.videos-header a:hover{
    transform: translateY(-4px);
    background-color: #222;
}

/* =========================
   GRID DE VIDEOS
========================= */

.videos-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* =========================
   TARJETA
========================= */

.container-video{
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: .4s ease;
    display: flex;
    flex-direction: column;
}

.container-video:hover{
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* =========================
   IMAGEN
========================= */

.video-img{
    height: 320px;
    overflow: hidden;
    position: relative;
}

.video-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .5s ease;
}

.container-video:hover .video-img img{
    transform: scale(1.08);
}

/* Overlay */

.video-img::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.45),
        rgba(0,0,0,0)
    );
    opacity: 0;
    transition: .4s ease;
}

.container-video:hover .video-img::after{
    opacity: 1;
}

/* =========================
   CONTENIDO
========================= */

.video-content{
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Etiqueta */

.tag-video{
    display: inline-block;
    width: fit-content;

    padding: 8px 16px;
    margin-bottom: 18px;

    background-color: #f1f1f1;
    color: #111;

    border-radius: 50px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Titulo */

.video-content h3{
    font-size: 26px;
    line-height: 1.3;
    color: #000;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Texto */

.video-content p{
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

/* =========================
   BOTON
========================= */

.video-content a{
    display: inline-block;
    width: fit-content;

    margin-top: auto;

    padding: 12px 25px;

    background-color: #000;
    color: #fff;

    border-radius: 50px;
    text-decoration: none;

    transition: .3s ease;
}

.video-content a:hover{
    background-color: #222;
    transform: translateY(-3px);
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media(max-width:1100px){

    .videos-grid{
        grid-template-columns: repeat(2,1fr);
    }

    .video-img{
        height: 280px;
    }

}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media(max-width:768px){

    .container-principal-videos{
        padding: 80px 5%;
    }

    .videos-header h2{
        font-size: 2.3rem;
    }

    .videos-header p{
        font-size: .95rem;
        line-height: 1.9;
    }

    .videos-grid{
        grid-template-columns: 1fr;
    }

    .video-img{
        height: 260px;
    }

    .video-content{
        padding: 25px;
    }

    .video-content h3{
        font-size: 22px;
    }

}